package cn.stylefeng.guns.sys.modular.system.mapper;

import cn.stylefeng.guns.sys.modular.system.entity.DingdingDayRequest;
import cn.stylefeng.guns.sys.modular.system.model.params.DingdingDayRequestParam;
import cn.stylefeng.guns.sys.modular.system.model.result.DingdingDayRequestResult;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 钉钉，人员申请单，请假、外出的表单 Mapper 接口
 * </p>
 *
 * @author zxd
 * @since 2022-03-10
 */
public interface DingdingDayRequestMapper extends BaseMapper<DingdingDayRequest> {

    /**
     * 获取列表
     *
     * @author zxd
     * @Date 2022-03-10
     */
    List<DingdingDayRequestResult> customList(@Param("paramCondition") DingdingDayRequestParam paramCondition);

    /**
     * 获取map列表
     *
     * @author zxd
     * @Date 2022-03-10
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") DingdingDayRequestParam paramCondition);

    /**
     * 获取分页实体列表
     *
     * @author zxd
     * @Date 2022-03-10
     */
    Page<DingdingDayRequestResult> customPageList(@Param("page") Page page, @Param("paramCondition") DingdingDayRequestParam paramCondition);

    /**
     * 获取分页map列表
     *
     * @author zxd
     * @Date 2022-03-10
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") DingdingDayRequestParam paramCondition);

    void batchInsert(@Param("list") List list);
}
